/*****************************************************************************
 * (C) Copyright 
 * FILE NAME:    hwa_inputs.h
 * DESCRIPTION:  Header file for module hwa_inputs.c
 * DATE BEGUN:   
 * BY:           
 * PRODUCT NAME: 
 * APPLICATION:  
 * TARGET H/W:   
 * DOC REF:
 *****************************************************************************
 */
 
#ifndef hwa_inputs_h
#define hwa_inputs_h
#include "system.h"
#include "hwa_inputs_cfg.h"

#define A2D_AVG_SIZE   (5)      /* size of A2D median buffer (must be odd) */
/* Function prototypes */
UINT8 readInputs(void);
UINT8 HWA_GetInput(UINT8 cmd);
UINT8 hwa_inputsReadA2D(UINT8 ch);
UINT8 hwa_inputsReadDebouncedA2D(UINT8 ch);

UINT8 hwa_inputsGetVBatCurrent(void);
UINT8 hwa_A2dActionsFilter( UINT8 size, const UINT8 *const pArray );

/*************************end of hwa_inputs.h*********************************/
#endif


/******************************************************************************
 Revision Notes:

For each change to this file, be sure to record:
1. Who made the change and when the change was made.
2. Why the change was made and the intended result.

  Date     By     Reason For Change
mm/dd/yy  XXX     -----------------

******************************************************************************/
